<template>
  <div id="app">
    <!-- 
      el-row 行
      el-col 列 默认情况将界面分成24列 :span=8
     -->
    <el-row class="box">
      <el-col :span=8>
        <div class="bgGray"></div>
      </el-col>
      <el-col :span=8>
        <div class="bgRed"></div>
      </el-col>
      <el-col :span=8>
        <div class="bgBlue"></div>
      </el-col>
    </el-row>
    <!-- 有间隔的写法 -->
    <el-row class="box" :gutter="20">
      <el-col :span=6>
        <div class="bgGray"></div>
      </el-col>
      <el-col :span=6>
        <div class="bgRed"></div>
      </el-col>
      <el-col :span=6>
        <div class="bgBlue"></div>
      </el-col>
      <el-col :span=6>
        <div class="bgGray"></div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  }
}
</script>

<style lang="less" scoped>
* {
  margin:0;
  padding: 0;
  box-sizing: border-box;
}
.box {
  width: 100vw;
  margin: 10px 0;
}
.bgGray{
    width: 100%;
    height: 60px;
    background-color: gray;
}
.bgRed{
    width: 100%;
    height: 60px;
    background-color: red;
}
.bgBlue{
    width: 100%;
    height: 60px;
    background-color: blue;
}
</style>
